package com.terrapages.wmsc4j.client.mosaic.prodcon;

/**
 * Used when you want one reference to two related objects. 
 * Similar to a key value pair, however, in this case, there is no concept of a key, just two values.
 * The two values are specified as "right" and "left".
 * 
 * @author mvivian
 *
 * @param <L> The left object
 * @param <R> The right object
 */
public class Pair<L,R> {
	private L left;
	private R right;
	
	/**
	 * Creates a pair object
	 * @param left
	 * @param right
	 */
	public Pair(final L left,final R right) {
		super();
		this.left = left;
		this.right = right;
	}
	
	/**
	 * Gets the left value
	 * @return
	 */
	public final L getLeft() {
		return left;
	}
	
	/**
	 * Sets the left value
	 * @return
	 */
	public final void setLeft(final L left) {
		this.left = left;
	}
	
	/**
	 * Gets the right value
	 * @return
	 */
	public final R getRight() {
		return right;
	}
	
	/**
	 * Sets the right value
	 * @return
	 */
	public final void setRight(final R right) {
		this.right = right;
	}
}
